package com.headingsoft.jxc.domain;

import javax.persistence.ManyToOne;
import javax.validation.constraints.Size;

import org.springframework.roo.addon.entity.RooEntity;
import org.springframework.roo.addon.javabean.RooJavaBean;
import org.springframework.roo.addon.tostring.RooToString;

@RooJavaBean
@RooToString
@RooEntity
public class Goods {
	
	@ManyToOne
	private GoodsCategory category;
	private String goodsCode;
	private String name;
	@ManyToOne
	private UnitType unitType;
	private float salesPrice;
	private long inventoryCount;
	private long minInventoryCount;
	private long maxInventoryCount;
	private String brand;
	@Size(max=512)
	private String remark;
	@Size(max=512)
	private String specification;
	private float orderPrice;
	@ManyToOne
	private Warehouse warehouse;
	private String barcode;
}
